/**
 *====================================================
 * 文件名称: FinanceAuditLogEntity.java
 * 修订记录：
 * No    日期				作者(操作:具体内容)
 * 1.    2015年9月23日			chenxy(创建:创建文件)
 *====================================================
 * 类描述：(说明未实现或其它不应生成javadoc的内容)
 */
package com.yuexunit.finance.project.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 审批结果表
 * 
 * @ClassName: FinanceCompleteResultEntity
 * @author: NTBK-021-1010
 * @date: 2017年1月10日 下午1:41:40
 */
@Entity
@Table(name = "FIN_COMPLETE_RESULT")
public class FinanceCompleteResultEntity {

	/** 融资日志ID */
	@Id
	@GeneratedValue
	@Column(name = "ID")
	private Long id;

	/** 用户ID */
	@Column(name = "ACCOUNT_ID")
	private Long accountId;

	/*
	 * 业务ID FINANCE_ID 融资 LOANNOTICE_ID 放款 PICKUP_ID 提货 ENTERPRISEID 企业
	 * GRADEEVALUATIONID 评估 TEMPORARYCREDITLINEEVALUATIONID临额
	 */
	@Column(name = "PUBLIC_ID")
	private Long publicId;
	
	/***用户审核流程***/
	@Column(name = "enterpriseId")
	private Long enterpriseId;

	/* 货物名称 */
	@Column(name = "BULKSTOCKNAME")
	private String bulkstockName;

	/* 数量 */
	@Column(name = "QUANTITY")
	private BigDecimal quantity;

	/* 单位 */
	@Column(name = "UNIT")
	private String unit;

	/** 审核业务类型 1:融资、2:放款、3:提货 、4：用户审核 、5:用户等级审核、 6：临时额度审核 */
	@Column(name = "TASKTYPE")
	private String taskType;

	/* 融资申请ID */
	@Column(name = "FINANCEID")
	private Long financeId;

	/* 融资评审ID */
	@Column(name = "FINANCEAUDITID")
	private Long financeAuditId;

	/* 评审表编号 */
	@Column(name = "AUDITNUMBER")
	private String auditNumber;

	/* 当前流程状态 初审(已审核后修改)、已审核， */
	@Column(name = "FINALSTATE")
	private Long finalState;

	/* 用户审批时间 */
	@Column(name = "APPLICATIONDATETIME")
	private Date applicationDateTime;

	/* 公司名称 */
	@Column(name = "ENTERPRISENAME")
	private String enterpriseName;

	/* 融资产品名称 */
	@Column(name = "PRODUCTNAME")
	private String productName;

	/* 融资申请金额 */
	@Column(name = "APPLICATIONAMOUNT")
	private BigDecimal applicationAmount;

	/* 放款金额 */
	@Column(name = "LOANAMOUNT")
	private BigDecimal loanAmount;

	/* 提货装箱货物明细数量 */
	@Column(name = "CONTAINERINVENTORYSCOUNT")
	private Long containerInventorysCount;

	/* 法人姓名 */
	@Column(name = "FRNAME")
	private String FrName;

	/* 授信额度 */
	@Column(name = "CREDITLINE")
	private BigDecimal creditLine;

	/* 临时额度 */
	@Column(name = "TEMPORARYCREDITLINE")
	private BigDecimal temporaryCreditline;

	/* 用户审批时间 */
	@Column(name = "CREATE_DT")
	private Date create_dt;
	
	
	

	
	
	
	/**融资构造函数 逻辑参考FinanceAppActionApiImpl 738行*/
	public FinanceCompleteResultEntity(Long publicId,
			String bulkstockName, BigDecimal quantity, String unit, String taskType,
			Long financeId, Long financeAuditId, String auditNumber,
			Long finalState, Date applicationDateTime, String enterpriseName,
			String productName, BigDecimal applicationAmount) {
		super();
		this.publicId = publicId;
		this.bulkstockName = bulkstockName;
		this.quantity = quantity;
		this.unit = unit;
		this.taskType = taskType;
		this.financeId = financeId;
		this.financeAuditId = financeAuditId;
		this.auditNumber = auditNumber;
		this.finalState = finalState;
		this.applicationDateTime = applicationDateTime;
		this.enterpriseName = enterpriseName;
		this.productName = productName;
		this.applicationAmount = applicationAmount;
	}
	
	
	
	/**放款审批构造函数 逻辑参考FinanceAppActionApiImpl 838行*/
	public FinanceCompleteResultEntity(Long publicId,
			String bulkstockName, BigDecimal quantity, String unit, String taskType,
			String auditNumber, Date applicationDateTime,
			String enterpriseName, String productName, BigDecimal loanAmount) {
		super();
		this.publicId = publicId;
		this.bulkstockName = bulkstockName;
		this.quantity = quantity;
		this.unit = unit;
		this.taskType = taskType;
		this.auditNumber = auditNumber;
		this.applicationDateTime = applicationDateTime;
		this.enterpriseName = enterpriseName;
		this.productName = productName;
		this.loanAmount = loanAmount;
	}
	
	

	/**提货审批构造函数 逻辑参考FinanceAppActionApiImpl 871行*/
	public FinanceCompleteResultEntity(Long publicId,
			String bulkstockName, BigDecimal quantity, String unit, String taskType,
			String auditNumber, Date applicationDateTime,
			String enterpriseName, String productName,
			Long containerInventorysCount) {
		super();
		this.publicId = publicId;
		this.bulkstockName = bulkstockName;
		this.quantity = quantity;
		this.unit = unit;
		this.taskType = taskType;
		this.auditNumber = auditNumber;
		this.applicationDateTime = applicationDateTime;
		this.enterpriseName = enterpriseName;
		this.productName = productName;
		this.containerInventorysCount = containerInventorysCount;
	}


	
	/**客户认证审批构造函数 逻辑参考FinanceAppActionApiImpl 913行*/
	public FinanceCompleteResultEntity(Long publicId,
			Long enterpriseId, String taskType, String auditNumber,
			Long finalState, Date applicationDateTime, String enterpriseName,
			String frName) {
		super();
		this.publicId = publicId;
		this.enterpriseId = enterpriseId;
		this.taskType = taskType;
		this.auditNumber = auditNumber;
		this.finalState = finalState;
		this.applicationDateTime = applicationDateTime;
		this.enterpriseName = enterpriseName;
		FrName = frName;
	}
	
	


	/**估计额度审批构造函数 逻辑参考FinanceAppActionApiImpl 934行*/
	public FinanceCompleteResultEntity(Long publicId,
			Long enterpriseId, String taskType, String auditNumber,
			Long finalState, Date applicationDateTime, String enterpriseName,
			BigDecimal creditLine) {
		super();
		this.publicId = publicId;
		this.enterpriseId = enterpriseId;
		this.taskType = taskType;
		this.auditNumber = auditNumber;
		this.finalState = finalState;
		this.applicationDateTime = applicationDateTime;
		this.enterpriseName = enterpriseName;
		this.creditLine = creditLine;
	}
	
	
	


	/**临时额度审批构造函数 逻辑参考FinanceAppActionApiImpl 955行*/
	public FinanceCompleteResultEntity(Long publicId,
			Long enterpriseId, String taskType, String auditNumber,
			Long finalState, Date applicationDateTime,BigDecimal temporaryCreditline ,String enterpriseName
			) {
		super();
		this.publicId = publicId;
		this.enterpriseId = enterpriseId;
		this.taskType = taskType;
		this.auditNumber = auditNumber;
		this.finalState = finalState;
		this.applicationDateTime = applicationDateTime;
		this.enterpriseName = enterpriseName;
		this.temporaryCreditline = temporaryCreditline;
	}



	public FinanceCompleteResultEntity() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Long getEnterpriseId() {
		return enterpriseId;
	}

	public void setEnterpriseId(Long enterpriseId) {
		this.enterpriseId = enterpriseId;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getAccountId() {
		return accountId;
	}

	public void setAccountId(Long accountId) {
		this.accountId = accountId;
	}

	public Long getPublicId() {
		return publicId;
	}

	public void setPublicId(Long publicId) {
		this.publicId = publicId;
	}

	public String getBulkstockName() {
		return bulkstockName;
	}

	public void setBulkstockName(String bulkstockName) {
		this.bulkstockName = bulkstockName;
	}

	public BigDecimal getQuantity() {
		return quantity;
	}

	public void setQuantity(BigDecimal quantity) {
		this.quantity = quantity;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}


	public String getTaskType() {
		return taskType;
	}

	public void setTaskType(String taskType) {
		this.taskType = taskType;
	}

	public Long getFinanceId() {
		return financeId;
	}

	public void setFinanceId(Long financeId) {
		this.financeId = financeId;
	}

	public Long getFinanceAuditId() {
		return financeAuditId;
	}

	public void setFinanceAuditId(Long financeAuditId) {
		this.financeAuditId = financeAuditId;
	}

	public String getAuditNumber() {
		return auditNumber;
	}

	public void setAuditNumber(String auditNumber) {
		this.auditNumber = auditNumber;
	}

	public Long getFinalState() {
		return finalState;
	}

	public void setFinalState(Long finalState) {
		this.finalState = finalState;
	}

	public Date getApplicationDateTime() {
		return applicationDateTime;
	}

	public void setApplicationDateTime(Date applicationDateTime) {
		this.applicationDateTime = applicationDateTime;
	}

	public String getEnterpriseName() {
		return enterpriseName;
	}

	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public BigDecimal getApplicationAmount() {
		return applicationAmount;
	}

	public void setApplicationAmount(BigDecimal applicationAmount) {
		this.applicationAmount = applicationAmount;
	}

	public BigDecimal getLoanAmount() {
		return loanAmount;
	}

	public void setLoanAmount(BigDecimal loanAmount) {
		this.loanAmount = loanAmount;
	}

	public Long getContainerInventorysCount() {
		return containerInventorysCount;
	}

	public void setContainerInventorysCount(Long containerInventorysCount) {
		this.containerInventorysCount = containerInventorysCount;
	}

	public String getFrName() {
		return FrName;
	}

	public void setFrName(String frName) {
		FrName = frName;
	}

	public BigDecimal getCreditLine() {
		return creditLine;
	}

	public void setCreditLine(BigDecimal creditLine) {
		this.creditLine = creditLine;
	}

	public BigDecimal getTemporaryCreditline() {
		return temporaryCreditline;
	}

	public void setTemporaryCreditline(BigDecimal temporaryCreditline) {
		this.temporaryCreditline = temporaryCreditline;
	}

	public Date getCreate_dt() {
		return create_dt;
	}

	public void setCreate_dt(Date create_dt) {
		this.create_dt = create_dt;
	}
	
	
	

}
